package com.hmy.finance.dal.po.receipt;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 设备费用核销记录
 *
 * @TableName device_offset_record
 */
@TableName(value = "device_offset_record")
@Data
public class DeviceOffsetRecordPo implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 关联销售合同ID
     */
    @TableField(value = "contract_id")
    private Long contractId;

    /**
     * 关联合同核销记录ID
     */
    @TableField(value = "contract_offset_id")
    private Long contractOffsetId;

    /**
     * 关联设备ID
     */
    @TableField(value = "device_id")
    private Long deviceId;

    /**
     * 关联设备租赁记录ID
     */
    @TableField(value = "device_rental_record_id")
    private Long deviceRentalRecordId;

    /**
     * 关联设备费用流水记录ID
     */
    @TableField(value = "device_daily_bill_id")
    private Long deviceDailyBillId;

    /**
     * 本次核销金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 费用发生日期
     */
    @TableField(value = "fee_incurred_time")
    private Date feeIncurredTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人ID
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 创建人姓名
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 更新人ID
     */
    @TableField(value = "updater_id")
    private Long updaterId;

    /**
     * 更新人姓名
     */
    @TableField(value = "updater_name")
    private String updaterName;

    /**
     * 是否删除，0-否；1-是
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}